package com.bjqg.bjqg01.bjqg.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;

/**
 * Created by bjqg01 on 2017/12/13.
 */

public class EntrusDetailActivity extends BaseActivity implements View.OnClickListener {

    private ImageView goback;
    private TextView toptitle;
    private ImageView select;
    private TextView payEntrus;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail_entrust);

        initView();
    }

    private void initView() {
        goback = (ImageView) findViewById(R.id.back);
        toptitle = (TextView) findViewById(R.id.tv_top_title);
        select = (ImageView) findViewById(R.id.select);

        payEntrus = (TextView) findViewById(R.id.pay_entrus);


        goback.setOnClickListener(this);
        payEntrus.setOnClickListener(this);

        toptitle.setText("委托详情");
        select.setVisibility(View.GONE);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.back:
                finish();
                break;
            case R.id.pay_entrus:

                Intent intent = new Intent(getApplicationContext(), OnLinePayActivity.class);
                startActivity(intent);
                break;
        }
    }
}
